function main(params) {
    debugger
    const self = this;
    let regionCodeEle = self.$$("text_input_54pt7r");
    let countryEle = self.$$("text_input_6iltos");
    let provinceEle = self.$$("text_input_e7ln66");
    let cityEle = self.$$("text_input_1x0udy");
    let districtEle = self.$$("text_input_55q4pw");
    let streetEle = self.$$("text_input_dd3dav");
    let communityEle = self.$$("text_input_ayzvd0");


    let treeSelectId = params.data.ID;
    // 区域类型（-1 全国 0 省 1 市 2 区县 3 街道 4 社区）
    let type = parseInt(params.data.TYPE)
    const fields = ['countryId', 'provinceId', 'cityId', 'districtId', 'streetId', 'community'];
    let result = {
        countryId: null,
        provinceId: null,
        cityId: null,
        districtId: null,
        streetId: null,
        community: null
    };


    const index = type + 1;
    if (index >= 0 && index < fields.length) {
        result[fields[index]] = treeSelectId;
    }

    regionCodeEle.cValue = params.data.CODE;
    countryEle.cValue = result.countryId;
    provinceEle.cValue = result.provinceId;
    cityEle.cValue = result.cityId;
    districtEle.cValue = result.districtId;
    streetEle.cValue = result.streetId;
    communityEle.cValue = result.community;


    regionCodeEle.onChange();

}
